package com.googlecode.icaltohtml;

import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;

abstract class Item {
	private ArrayList<Item> _l;
	protected static final SimpleDateFormat SDF=
		new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");
	
	protected Item() {
		_l = new ArrayList<Item>();
	}
	
	public void add(Item item) {
		_l.add(item);
	}
	
	public Item get(int i) {
		return _l.get(i);
	}
	
	public List<Item> get(){
		return _l;
	}
	
	public abstract void printXML(PrintWriter out);
	
}
